<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    {% load staticfiles %}
    {% block titletpl %}
        <title>极致果蔬-水果商城</title>
    {% endblock titletpl %}
    <link rel="stylesheet" type="text/css" href="{% static 'css/reset.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">
{#网页顶部引入文件块#}
    {% block topfile %}{% endblock topfile %}
</head>
<body>

{% block hesder_welcom %}
    <div class="header_con">
        <div class="header">
            <div class="welcome fl">欢迎来到极致果蔬！</div>
            <div class="fr">
                {% if user.is_authenticated %}
                <div class="login_info fl">
                    欢迎你：<em>{{ user.username }}</em>
                    <a href="{% url 'login' %}">退出</a>
                </div>
                {% else %}
                <div class="login_btn fl">
                    <a href="{% url 'login' %}">登录</a>
                    <span>|</span>
                    <a href="{% url 'register' %}">注册</a>
                </div>
                {% endif %}
                <div class="user_link fl">
                    <span>|</span>
                    <a href="{% url 'userinfo' %}">用户中心</a>
                    <span>|</span>
                    <a href="cart.html">我的购物车</a>
                    <span>|</span>
                    <a href="{% url 'order' %}">我的订单</a>
                </div>
            </div>
        </div>
    </div>
{% endblock hesder_welcom %}

{#网页搜索框#}
{% block search_bar %}
    <div class="search_bar clearfix">
        <a href="{% url 'index' %}" class="logo fl">
            <img src="{% static 'images/logo.png' %}" alt="">
        </a>
        <div class="guest_cart fr">
            <a href="#" class="cart_name fl">我的购物车</a><div class="goods_count fl" id="show_count">1</div>
        </div>
        <div class="search_con fr">
            <input type="text" class="input_text fl" name="" placeholder="搜索商品">
            <input type="button" class="input_btn fr" name="" value="搜索">
        </div>

    </div>
{% endblock search_bar %}
{#网站主题内容#}
{% block body_content %}{% endblock body_content %}

<div class="footer no-mp">
    <div class="foot_link">
        <a href="#">关于我们</a>
        <span>|</span>
        <a href="#">联系我们</a>
        <span>|</span>
        <a href="#">招聘人才</a>
        <span>|</span>
        <a href="#">友情链接</a>
    </div>
    <p>>CopyRight © 2019 深圳极致果蔬有限公司 All Rights Reserved</p>
    <p>电话：0321-#####666 粤 ICP 备##########6 号</p>
</div>

{#网页底部html元素块 -如浏览信息#}
{% block bottomfiles %}{% endblock bottomfiles %}
</body>
</html>